import { createRouter, createWebHistory ,createWebHashHistory,type RouteRecordRaw} from 'vue-router'
import Login from '../views/Login.vue'
import User from '../views/User.vue'
const routes:Array<RouteRecordRaw>= [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/User',
    name: 'User',
    component: User // 懒加载
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes
})
export default router